package com.itxiaosu.strategy.impl;

import com.itxiaosu.constants.FruitConstants;
import com.itxiaosu.strategy.DiscountStrategy;

// 有折扣策略类
public class UnifiedDiscount implements DiscountStrategy {
    @Override
    public double discountType(double totalPrice) {
        return totalPrice * FruitConstants.FRUIT_DISCOUNT;
    }
}
